<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
  <base href="<%=basePath%>"/>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<script type="text/javascript" src="js/jquery.js"></script>
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	<script charset="utf-8" src="front/kindeditor.js"></script>
		<script>
			KE.show({
				id : 'content1',
				shadowMode : false,
				autoSetDataMode: false,
				syncType : '', 
				allowPreviewEmoticons : false,
				afterCreate : function(id) {
					KE.event.add(KE.$('example'), 'submit', function() {
						KE.sync(id);
					});
				}
			});
		</script>
	<script type="text/javascript">
		function checkIcon(){
			var icon = $("#favicon").val();
			var n = icon.lastIndexOf(".");
			var a = icon.substr(n);
			alert(icon);
			if(a != ".ico"){
				alert("不支持该格式");
			}
		}
		function checkLogo(){
			var logo = $("#logo").val();
			var n = logo.lastIndexOf(".");
			var a = logo.substr(n);
			alert(a);
			if(a != ".jpg"&& a !=".jpeg" && a !=".gif" && a !=".png" && a !=".bmp" ){
				alert("不支持该格式");
			}
		}
	</script>
	
  </head>
  
  <body class="ContentBody">
  <c:if test="${message != null}">
								<table width="100%">
									<tr style="background-color: #87CEFF">
										<td align="center" valign="center" height="30">
											<div>${message}</div>
										</td>
									</tr>
								</table>
							</c:if>
<div class="MainDiv">
<form id="example" name="example" action="hospitalInfo.do?method=update" method="post" enctype="multipart/form-data">
<table width="99%" border="0" cellpadding="0" cellspacing="0" class="CContent" bgColor=#eefbfe>
  <tr>
      <th class="tablestyle_title" valign="top">医院名称</th>
    <td class="CPanel">
    <input type="text" name="hospitalName" value="${his.hospitalName}"/>
	</td>
  </tr>
  <tr>
      <th class="tablestyle_title" valign="top">医院LOGO
      </th>
    <td class="CPanel">
    <input type="file" name="logo" id="logo" onchange ="checkLogo()"/>
    不填则不修改
	</td>
  </tr>
  <tr>
      <th class="tablestyle_title" valign="top">医院ICON</th>
    <td class="CPanel">
    <input type="file" name="icon" onchange ="checkIcon()" id="favicon"/>
    不填则不修改
	</td>
  </tr>
   <tr>
      <th class="tablestyle_title" valign="top">页脚 信息</th>
    <td class="CPanel">
    <input type="text" name="yejiaoxinxi" value="${his.yejiaoxinxi}"/>
	</td>
  </tr>
  <tr>
      <th class="tablestyle_title" valign="top"><br/>医院简介</th>
    <td class="CPanel">
    <br/>
		<textarea id="content1" name="jianjie" style="width:700px;height:200px;visibility:hidden;">${his.jianjie}</textarea>
	</td>
  </tr>
	<tr>
		<td colspan="2" align="center" height="50px">
		<input type="submit" name="Submit" value="保存" />　
		</td>
	</tr>
</table>
</form>
</div>
</body>
</html>
